import { createApp } from 'vue'
import App from './App'
import router from './router/index'
import { store } from  './store/index'
import lazyPlugin from 'vue3-lazy'

import toast from 'components/common/toast'

const app = createApp(App)

app.use(router) // 路由
app.use(store) // vuex
app.use(toast) // toast插件
app.use(lazyPlugin, {
  loading: require('./assets/img/common/placeholder.png')
}) // 路由懒加载
app.mount('#app')
